package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

@ApiModel("用户保存头衔")
@Data
public class UserSaveTitleDTO {

    @ApiModelProperty("用户id")
    @Min(value = 1, message = "用户id必须大于0")
    private Integer userId;

    @ApiModelProperty("头衔id")
    @Min(value = 1, message = "用户头衔id必须大于0")
    private Integer userTitleId;

}
